<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input {
            height: 50px;
            /* 自减 */
            box-sizing: border-box;

            /* 垂直对齐 中部对齐 */
            vertical-align: middle;
        }

        .father {
            width: 400px;
            background-color: pink;
        }

        img {
            /* 浏览器把行内和行块标签当作文字处理，默认基线对齐 */
            /* 解决方式： */
            /* 1. vertical-align: middle; */
            /* 2. */display: block;
        }
    </style>
</head>
<body>
    <input type="text"><input type="button" value="搜索">
    <div class="father">
        <img src="../img/一人之下.webp" alt="">
    </div>
</body>
</html>